/**
 * @author manel
 */

var CONFIG = {
	bgColor: "#F02020",
	
	maxLives: 3,
	maxHealth: 150,
	
	heroWidth: 40,
	heroHeight:40,
	
	enemyWidth: 50,
	enemyHeight: 50,
	enemyRadio: 21 * 21,
	
	screenWidth: 400,
	screenHeight: 300,
	
	minWidth:0,
	minHeight:0,
	
	controlInterval: 1000/30, // in ms
	
	completedPercent: 20
}

CONFIG.totalArea = CONFIG.screenWidth * CONFIG.screenHeight;

// define hero start position
CONFIG.heroStartX =  (CONFIG.screenWidth / 2) - (CONFIG.heroWidth / 2);
CONFIG.heroStartY = (CONFIG.screenHeight / 2) - (CONFIG.heroHeight / 2);

// define enemies start position
// values : start x, start y, vel x, vel y
CONFIG.enemy = [
	[(CONFIG.screenWidth * 0.20) - (CONFIG.enemyWidth/2), (CONFIG.screenHeight * 0.80) - ( CONFIG.enemyHeight / 2), 1, -1 ],
	[(CONFIG.screenWidth * 0.80) - (CONFIG.enemyWidth/2), (CONFIG.screenHeight * 0.80) - ( CONFIG.enemyHeight / 2), -1, -1 ],
];


